{extend name="default/template/base_index" /}

{block name="area_header"}

{/block}

{block name="area_body"}
{include file="default/Widget/topbar" /}
<div class="admin-main container-fluid">
    {include file="default/Widget/left" /}
    <div class="admin-main-content">
        {include file="default/Widget/breadcrumb" /}
        <div class="table-responsive well">
            <!-- 过滤\查询按钮 -->
            <div class="filter-controls">
                <form action="{:url('Relation/show')}" class="memberForm form-inline" method="post">
                    <div class="form-group">
                        <label class="control-label">用户昵称</label>
                        <div class="input-group">
                            <input class="form-control" value="" type="text" name="nickname" placeholder="请输入用户昵称" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label">头像</label>
                        <div class="input-group">
                            <input class="form-control" value="" type="text" name="mobile" placeholder="请输入用户手机号" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label">用户所属组</label>
                        <div class="input-group">
                            <select name="u_group" class="form-control">
                                <option value="">=全部=</option>
                                <option {eq name="$type" value="1"}selected="selected"{/eq} value="1">天使</option>
                                <option {eq name="$type" value="2"}selected="selected"{/eq} value="2">精英</option>
                                <option {eq name="$type" value="3"}selected="selected"{/eq} value="3">领袖</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label">&nbsp;</label>
                        <div class="input-group">
                            <button type="submit" class="btn btn-primary btn-sm"><i class="fa fa-search"></i>查询</button>
                        </div>
                    </div>
                </form>
            </div>
            <!-- 操作按钮 -->
            <div class="btn-controls">
                <a class="btn btn-sm btn-primary" href="{:url('Member/add')}"><i class="fa fa-plus"></i>{:L('BTN_ADD')}</a>
                <a target-form="selectitem" class="ajax-post btn btn-sm btn-primary" href="{:url('Member/enable')}"><i class="fa fa-check-circle"></i>{:L('BTN_ENABLE')}</a>
                <a target-form="selectitem" class="ajax-post btn btn-sm btn-primary" href="{:url('Member/disable')}"><i class="fa fa-minus-circle"></i>{:L('BTN_DISABLE')}</a>
            </div>

            <table class="table table-striped table table-hover  table-condensed">
                <thead>
                <tr>
                    <th style="width:40px;">
                        <input type="checkbox" class="selectall" onclick="myUtils.selectall(this,'.selectitem');" />
                    </th>
                    <th>
                        用户唯一ID
                    </th>
                    <th>
                        头像
                    </th>
                    <th>
                        昵称
                    </th>
                    <th>
                        用户级别
                    </th>
                    <th>
                        注册时间
                    </th>


                </tr>
                </thead>
                <tbody>
                {empty name="info"}
                <tr>
                    <td colspan="8" class="text-center">{:L('NO_DATA')}</td>
                </tr>
                {else/}
                {volist name="info" id="vo"}
                <tr>
                    <td>
                        <input type="checkbox" value="{$vo.id}" name="uids[]" class="selectitem" /></td>

                    <td>
                        {$vo.lower_uid}</td>
                    <td>
                        <a href="#">
                            <img class="m-avatar" src="{$vo.head}" />
                        </a>

                    </td>
                    <td>{$vo.nickname}</td>
                    <td>
                        {eq name='$vo.lower_type' value='1'}健康天使{/eq}
                        {eq name='$vo.lower_type' value='2'}健康精英{/eq}
                        {eq name='$vo.lower_type' value='3'}健康领袖{/eq}
                    </td>
                    <td>{$vo.update_time}</td>



                </tr>
                {/volist}
                {/empty}
                </tbody>
            </table>

        </div>
    </div>
    <!-- END admin-main-content -->
</div>
<!-- END admin-main-->
{/block}

{block name="area_footer"}

{/block}
